package com.bwie.controller;

import com.bwie.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/17 10:53
 */

@RestController
@RequestMapping(value = "/product/test")
@Slf4j
@RefreshScope
public class TestController {

    @Value("${site.className}")
    private String className;

    @GetMapping(value = "/getClassName")
    public R getClassName() {
        System.out.println("班级名称:"+className);
        return R.OK(className);
    }

}
